<%-- 
    Document   : consultar
    Created on : Feb 23, 2012, 4:48:25 PM
    Author     : andreth
--%>

<%@page import="clases.Matriz"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
  <script src="/CPYD/interfaz/javascript/reportes.js" language="Javascript"></script>
<tiles:insert definition="mensaje"></tiles:insert>

  
 
    <h3> Seleccione la matriz que desea ver : </h3>
    <br>
    <br>
    <table>
        <html:form>
        <tr>
                <td> Unidad </td>
                    <td>
                        <logic:present name="unidades">
                            <html:select property="codigoUnidad" onchange="cargar('listarMatriz.do?unidad='+this.value, 'matrices')">
                                <html:option value="0"> Seleccione Unidad</html:option>
                                <html:options collection="unidades" property="codigo"  labelProperty="descripcion"/>
                            </html:select> 
                        </logic:present>
                    </td>

        <tr>
        </html:form>
    </table>
    <html:form action="/consultarMatriz?method=oneType" onsubmit="return this">  
         <div id="matrices"></div>
        <table>
        <html:hidden name="Matriz" property="idMatriz"></html:hidden>
        <tr>
            <td>Año:</td> 
            <td>
                <html:select name="Matriz" property="ano">
                    <html:option value="0"> Seleccionar año</html:option>
                    <html:options name="anos"/>
                </html:select> 
            </td>
            <td>Trimestre: *</td>
            <td>
                <html:select name="Matriz" property="trimestre">
                    <html:option value="0"> Seleccionar trimestre </html:option>
                    <html:option value="I"> I</html:option>
                    <html:option value="II"> II</html:option>
                    <html:option value="III"> III</html:option>
                    <html:option value="IV"> IV</html:option>
                </html:select>
            </td>
            <td>* Campo <b>no</b> obligatorio para tipo Programacion</td>
        </tr>
       </table>

    <div class="buttons">
            <button type="submit" class="positive" style="margin-left: 40%; margin-top: 1%;">
            <img src="interfaz/images/agregar.png" alt=""/>
            Seleccionar
            </button>
    </div>

    </html:form>
</html>
